package com.chat.room.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.net.InetAddress;

/**
 * 服务配置对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ServerInfo implements Serializable {

    private InetAddress ip;

    private int port;

    @Override
    public String toString() {
        return "ServerInfo{" +
                "ip=" + ip.getHostAddress() +
                ", port=" + port +
                '}';
    }
}